package com.rabbit.producer.mapper;

import com.rabbit.producer.entity.BrokerMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface BrokerMessageMapper {
	

    int insert(BrokerMessage record);

    BrokerMessage selectByPrimaryKey(String messageId);

	void changeBrokerMessageStatus(@Param("brokerMessageId") String brokerMessageId, @Param("brokerMessageStatus") String brokerMessageStatus, @Param("updateTime") Date updateTime);

	List<BrokerMessage> queryBrokerMessageStatusForTimeout(@Param("brokerMessageStatus") String brokerMessageStatus);

	int update4TryCount(@Param("brokerMessageId") String brokerMessageId, @Param("updateTime") Date updateTime);
	
}